package com.getword.utils;

import org.springframework.stereotype.Component;


@Component
public class ImageAsync {
    /**
     * 生成图片缩略图
     *
     * @throws Exception
     */
//    @Async
//    public void createThumbnail(File file) throws Exception {
//        String newSaveName = "Th_" + file.getName();
//        ImageUtils.imgThumb(file, file.getParent() + File.separator + newSaveName, 1920, 1200);
//    }
}
